package com.sailing.xjpb.elasticsearch.config;

import com.sailing.xjpb.elasticsearch.EsClientPool;
import com.sailing.xjpb.elasticsearch.repository.EsRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * es组件自动注入
 *
 * @author YaoWei
 * createDate: 2021/9/29
 */
@Configuration
public class SailingEsAutoConfig {

    @Bean
    public EsRepository esRepository() {
        return new EsRepository();
    }

    @Bean
    public EsClientPool esClientPool() {
        return new EsClientPool();
    }

}
